package com.niuke;

import java.math.BigDecimal;

/**
 * @author tanghailan
 * @date 2020-11-03 11:44
 */
public class doubleTest {

  public static void main(String[] args) {
    double a = 6.7;
    double b = 6.7;
    BigDecimal c = new BigDecimal("6.8");
    BigDecimal d = new BigDecimal("6.7");
    System.out.println(c.compareTo(d));
    System.out.println(a != b);
  }
}
